<template>
  <div>
    <el-container>
      <el-header>&nbsp;人力资源管理系统</el-header>
      <el-container class="container">
        <el-aside width="300px">
          <Menu>

          </Menu>
        </el-aside>
        <el-container>
          <el-main>
            <el-row>
              <el-col :span="24">
                <div class="grid-content bg-purple-dark">
                  <span>
                    薪酬发放复核
                  </span>
                </div>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="5">
                <div class="grid-content bg-purple">
                  <span>
                    薪酬发放单编号
                  </span>
                </div>
              </el-col>
              <el-col :span="5">
                <div class="grid-content bg-purple-light">
                  <span>
                    I级机构
                  </span>
                </div>
              </el-col>
              <el-col :span="5">
                <div class="grid-content bg-purple">
                  <span>
                    II级机构
                  </span>
                </div>
              </el-col>
              <el-col :span="5">
                <div class="grid-content bg-purple-light">
                  <span>
                    III级机构
                  </span>
                </div>
              </el-col>
              <el-col :span="4">
                <div class="grid-content bg-purple">
                  <span>
                    复核
                  </span>
                </div>
              </el-col>
            </el-row>
            <el-row
                :model="salaryDistributionList"
                placement="top"
                v-for="salaryDistributionList in salaryDistributionList">
              <el-col :span="5">
                <div class="grid-content bg-purple">
                  {{salaryDistributionList.slistId}}
                </div>
              </el-col>
              <el-col :span="5">
                <div class="grid-content bg-purple-light">
                  {{salaryDistributionList.forgId}}
                </div>
              </el-col>
              <el-col :span="5">
                <div class="grid-content bg-purple">
                  {{salaryDistributionList.sorgId}}
                </div>
              </el-col>
              <el-col :span="5">
                <div class="grid-content bg-purple-light">
                  {{salaryDistributionList.torgId}}
                </div>
              </el-col>
              <el-col :span="4">
                <div class="grid-content">
                  <el-button type="primary" round @click="detail(salaryDistributionList.slistId)">复核</el-button>
                </div>
              </el-col>
            </el-row>
          </el-main>
        </el-container>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import{ defineComponent, ref }from 'vue'
import {
  Location,
  Document,
  Menu as IconMenu,
  Setting,
} from '@element-plus/icons-vue'
import Menu from "@/components/Menu";
export default defineComponent({
  name: "SalaryDistributionReview",
  components: {
    Menu,
    Location,
    Document,
    Setting,
    IconMenu,
  },
  data() {
    return {
      salaryDistributionList: {
        slistId: '',
        forgId: '',
        sorgId: '',
        torgId: '',
      }
    }
  },

  methods: {
    detail(id) {
      this.$router.push("/SalaryDistributionReview/" + id)
    }
  },
  created() {
    const _this = this
    _this.axios.get("/SalaryDistributionReviewBriefly").then(res =>{
      _this.salaryDistributionList = res.data.data
    })
  },
  setup() {
    const activeNames = ref(['1'])
    const handleChange = (val) => {
      console.log(val)
    }

    return {
      activeNames,
      handleChange,
    }
  }
})
</script>

<style scoped>
.el-header{
  background-color: #409EFF;
  color: #e9eef3;
  text-align: left;
  line-height: 60px;
  font-size: 30px;
}
.el-aside {
  background-color: #d3dce6;
  color: var(--el-text-color-primary);
  text-align: center;
  /*line-height: 860px;*/
}

.el-main {
  background-color: #e9eef3;
  color: var(--el-text-color-primary);
  text-align: center;
  line-height: 30px;
}

body > .el-container {
  margin-bottom: 400px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}

.el-row {
  margin-bottom: 20px;
}

.el-row :last-child {
  margin-bottom: 0;
}

.el-col {
  border-radius: 4px;
}
.bg-purple-dark {
  background: #99a9bf;
}
.bg-purple {
  background: #d3dce6;
}
.bg-purple-light {
  background: #e5e9f2;
}
.grid-content {
  border-radius: 4px;
  min-height: 36px;
}
.row-bg {
  padding: 10px 0;
  background-color: #f9fafc;
}

.high-row{
  min-height: 200px;
}

.container{
  min-height: 860px;
}

.line {
  width: 70%;
}

.line div {
  width: 100%;
  height: 0;
  border-top: 1px solid var(--el-border-color-base);
}

</style>